Base class for all materials in the component. More...
Public Member Functions | |
Material () | |
virtual | ~Material () |
std::string_view | getName () const |
nkGraphics::Shader * | getShader () const |
virtual MATERIAL_TYPE | getType () const =0 |
void | setName (const std::string_view &value) |
virtual bool | load ()=0 |
virtual void | unload ()=0 |
Base class for all materials in the component.
This class offers basic information and the general interface to access them.
nkAstraeus::Material::Material | ( | ) |
Constructor.
|
virtual |
Destructor.
std::string_view nkAstraeus::Material::getName | ( | ) | const |
nkGraphics::Shader* nkAstraeus::Material::getShader | ( | ) | const |
|
pure virtual |
Implemented in nkAstraeus::PbsMaterial.
void nkAstraeus::Material::setName | ( | const std::string_view & | value | ) |
Sets the name of the material.
value | The name to set. |
|
pure virtual |
Loads the material and make it ready for rendering.
Implemented in nkAstraeus::PbsMaterial.
|
pure virtual |
Unloads the material and its internal memory. After that, the material is unusable for rendering.
Implemented in nkAstraeus::PbsMaterial.